package com.barry.pattern.observation;

public abstract class Observer {
	private String key;
	
	/**
	 * 收到通知的反应
	 */
	abstract void update();
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
}
